// 广告类型定义
export interface AdvertItem {
  id: number
  name: string
  status: number
  startTime: string
  endTime: string
  positionId: number
  contentJson: string
  sort: number
  remark: string
  createdAt: string
  updatedAt: string
  delFlag: number
}

// 广告列表请求参数
export interface AdvertListParams {
  positionId?: number
  name?: string
  startTime?: string
  endTime?: string
  pageNum: number
  pageSize: number
}

// 广告列表返回数据
export interface AdvertListResponse {
  code: number
  message: string
  data: {
    pageNum: number
    pageSize: number
    totalPage: number
    total: number
    list: AdvertItem[]
  }
}

// 广告详情返回数据
export interface AdvertDetailResponse {
  code: number
  message: string
  data: AdvertItem
}

// 广告创建/更新请求参数
export interface AdvertCreateOrUpdateParams {
  id?: number
  name: string
  status: number
  startTime: string
  endTime: string
  positionId: number
  contentJson: string
  sort: number
  remark: string
}

// 广告位选项类型
export interface AdvertPositionOption {
  id: number
  name: string
}
